<template>
    <div class="look">
        <div class="look-btn">
            <router-link to="/home/lookbroad/lookhome"><button @click="toggle(0)" :class="index==0?'active':''">看板</button></router-link>
            <router-link to="/home/lookbroad/looksixiangxian"><button @click="toggle(2)" :class="index==2?'active':''">四象限</button></router-link>
        </div>
    </div>
</template>

<script>
export default {
    name:"look",
    data(){
        return {
            index:0
        }
    },
    methods:{
        toggle(i){
            this.index = i;
        }
    }
}
</script>

<style lang="less" scoped>
.look {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f8f7f7;
    .look-btn {
        padding: 0 15px 10px;
        box-sizing: border-box;
        button {
            background-color: transparent;
            font-size: 16px;
            color: #808080;
            &.active {
                color: #000;
                font-size: 20px;
                font-weight: bold;
            }
        }
    }
}
</style>